//**********************************************************************************
//GMCProj31.java
//
//Name: Gabriel Martins	de	Castro
//Class:	COMSC	110L.51
//Date: 10/08/2014
//Instructor: Dr.	Chunyan Bai
//
//Purpose: Proejct 3 Exercise 1 (Verify if a point is inside the circle with radius 10) 
//***********************************************************************************

import java.util.Scanner;
//Class
public class GMCProj31
{
	public static void main(String[]	args)//main	method
	{
      
      final int RADIUS = 10;
      
      //First Step : Prompt the user to enter two number
      System.out.println("Enter a point with two coordinates : ");
      Scanner input = new Scanner(System.in);
      int x = input.nextInt();
      int y = input.nextInt();
      
      //Second Step : Calculate the distance of the point
      double distance = Math.sqrt(Math.pow(x,2) + Math.pow(y,2));
      
      //Third Step : Verify if the distance is smaller than the radius
      if(distance < RADIUS)
         System.out.println("Point (" + x + "," + y + ") is in the circle");
      else
         System.out.println("Point (" + x + "," + y + ") is not in the circle");
     
   }
}